/*
 * @Author: lei 2677065112@qq.com
 * @Date: 2022-10-03 15:05:26
 * @LastEditors: lei 2677065112@qq.com
 * @LastEditTime: 2022-10-04 16:30:56
 * @FilePath: \vue-admin-template\src\utils\auth.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import Cookies from 'js-cookie'

const TokenKey = 'vue_admin_template_token'
// 获取浏览器本地存的token
export function getToken() {
  return Cookies.get(TokenKey)
}
// 往浏览器本地，设置token字符串到cookie中
export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}
